﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;

namespace GT
{
    public static partial class Extensions
    {
        public static byte[] GetData(this HttpWebResponse response)
        {
            byte[] ret = null;
            using (Stream s = response.GetResponseStream())
            {
                ret = s.ReadToEnd();
            }
            return ret;
        }
    }
}
